WIP: NPM package, JS patterns etc