phantom js loading exception handled