restoring path phantomjs