Added a block to support AMD module loading

Ran into a problem loading this in my project. Added a block to support an AMD environment.