fix code style according to jshint