update the project to be friendly to NPM for use with browserify