deal some warning by jshint