changed from jslint to jshint to avoid strict mode errors