improve code style via jshint