small requirejs events primitives