cleaning up jshint and fixing typos