Fixed browser utils to work with phantom js.