added undef to jshint and defined jquery and console as globals