Fix exporting by the AMD (fail with webpack)