emit phantomjs events