refactor scrollPos.js to match menuClass.js