Run tests with PhantomJS

Fixes Travis-CI testing