include jshint config; fixed js lint warnings