phantomas: log JS errors
jQuery test: trigger a core JS event
events: rename from eventListeners and introduce "eventsDispatched" metric (#440)