+ abstract helper functions for split event type javascript