Removed jshint errors and jquery dependency