add npm

fix localserver error
fix jshint error
add jsonlint.

to show error line.