deal with some warns

deal with some warns which are checked by jshint