Configured jshint and corrected all relevant errors.