fix phantomjs script