fix phantom js script