Create scrollPosEvents.js