Support headless testing using PhantomJS on Travis