add .jshintrc
fix spacing and missing semicolons