refactored scroll events to use jquery .one method