changed some files to be jshint compilant