added jshint and fixed some js lints (minor improvements)