fix($anchorScroll): fix scrolling with element as yOffset in Firefox, IE

Firefox and IE use the `<html>` element as the viewport, while Chrome uses
the `<body>`. This caused scrolling to not work correctly when an element
was set as `yOffset`. Using `window.pageYOffset` instead, seems to work
consistently across all supported browsers.