crossbrowser issues

Fixed a bug where the scrolltop value wouldn't be registered in firefox.