Added "main" param to package.json
Added support for AMD and Node.JS environments
Merge pull request #7 from Narsul/master

Added support of AMD and NodeJS environments