added .jshint and made corresponding fixes