Update to support requirejs