Cleaning up JS with JSLint