Mark references to IMEvent as js classes.