some fix suggested by jshint

jshint give warning to current code.
This commit fix some of it.