Adding window.top for better browser compatibility
Merge pull request #191 from amadeus/fix-window-top

Adding window.top for better browser compatibility