add npm

fix localserver error
fix jshint error
add jsonlint.

to show error line.
Merge pull request #1 from Layzie/master

fix localserver error & add jsonlint error