function generateEvent(s, args) {
        	var evt = document.createEvent("CustomEvent");
        	evt.initCustomEvent(s, false, false, args);
        	return evt;
        }
This function generates an event that is compatible with standard
compliant browsers and IE9 - IE11

This will prevent the error:
Object doesn't support this action

http://stackoverflow.com/questions/19345392/why-arent-my-parameters-getting-passed-through-to-a-dispatched-event/19345563#19345563
@param s String The name that the event should use
@param args Object an optional object that the event will use