Added "main" param to package.json
Added support of NodeJS environment for browserify
Added additional check for document for NodeJS environment
Fixed problem with missing document variable in NodeJS
Merge pull request #14 from Narsul/master

Added support for node and browserify environment