use PhantomJS for testing