perf(jqLite): improve createEventHandler method by switching from forEach to for loop