#2: use temp dir to extract phantomjs