updated to use phantomjs when running on travis