Add onevar to jshint config.
Fix linting errors