Add integration to RequireJS, and add delete eventCollection[key] on purgeAll function