Adding AMD support

* Continues to export to window.ab for legacy
support