Added function to wrap JQuery.fn.on callback
Added warning to change back the cache setting
Removes the error notification correctly
fixed scenario where error reports may not be sent correctly to error report server