reverted to phatomjs