add: add code limate badge and improve some code by jshint.