added requireJS dependency management, added NPM package