update package.json and ender.js according to npm registry spec.