started translation to native phantomjs