Monitors javascript events in Behat Mink Selenium based driver