add amd support
Merge pull request #5 from instanceofpro/amd-patch

add amd support