Added AMD API

Added AMD loader pattern so module can be loaded without the use of shim