Log JS errors in behat