Use PhantomJS.