Updated Prototype (window resize actions)