User interface testing with PhantomJS