added globals to jshintrc
fixed jshint issues