AMD support

no CommonJS support
Merge pull request #59 from szepeviktor/patch-1

AMD support