Defines AMD module if we're in AMD-land.
Merge pull request #231 from DoSomething/amd

Defines AMD module if we're in AMD-land.