Add support for AMD/requirejs