Migrate to PhantomJS for testing in travis