Add integration to RequireJS, and add delete eventCollection[key] on purgeAll function
Change yui references, and modify tests