Package for NPM

Preparation for being an NPM package.