added jshint and corrected whatever jshint complained about.