added jshint and cleaned-up all jshint warned problems