added NPM package, added requireJS dep management