add requirejs version of the events object