Add support for Asynchronous Module Definition (AMD) API

See http://requirejs.org/docs/whyamd.html