fixed all jshint bugs