inherits_browser: Add AMD support wrapper.

Broken indentation is to keep the diff small, won't lint anyway.