Added .jshintrc config options
Fixed up some jshint warnings