Added support for loading as AMD module
Merge pull request #29 from ciuliot/master

Added support for loading as AMD module