updated jshint config and fixed errors