cjs.on for dom and timer events