function createEvent(type, bubbles, cancelable)
{
    var event = document.createEvent("Event");
    event.initEvent(type, bubbles, cancelable);
    return event;
}
@param {string} type
@param {boolean} bubbles
@param {boolean} cancelable
@return {!Event}
@suppressGlobalPropertiesCheck