compiled and fixed all jshint warning