added compatibility with browserjs, requirejs, etc
Merge pull request #2 from zeevl/amd

added compatibility with browserjs, requirejs, etc