Added port selection for phantom js