Added .jshintrc file for stricter linting. Fixed up issues jshint found.
Merge origin/master