amd support for js file
Merge pull request #2 from mente/amd

amd support for js file