Use old custom event method because of phantom JS not supporting newer one