AMD/requirejs support, encapsulate function and expose to window/requirejs/node
Merge pull request #124 from Bantam/master

AMD/requirejs support, encapsulate function and expose to window/requirejs/node