JSLint fixes and scroll control