Fixed javascript code style
Fixed package.json error