Fix expose AMD

According to [AMD API](https://github.com/amdjs/amdjs-api/wiki/AMD), you sould [verify the existence of the `amd` property](https://github.com/amdjs/amdjs-api/wiki/AMD#defineamd-property-) on the `define` function.