Instrument customized events in your JS