DOM events injection library for testing