Removed jQuery dependency, allow floats as scroll distance, and use timer to check scrolling instead of window.onscroll event