Added package.json
Added support for AMD and NodeJS environment