add jshintrc
Fix linting errors in js