javascript: Umbrella pattern

Anatoly Mironov