added package.json, set some js code styles