Lightweight page level javascript events