Localize scope of 'event' when looping over 'available_events' to fix in...

in IE10, unscoped 'event' was null, so no event was bound.
That has lead to triggerHandler returning 'undefined', i.e. for onStart.