CON-2309 modify autohide script for GlobalNav so it respect scroll Value

This file is not loaded in our codebase. We add it via Optimizely. We decided to keep it in our repo so we have some sort of version control system.