Trigger custom JS events

For other JS to hook into.