Add AMD support for the browser.