chore(build): refactor code for jshint & grunt purpose