make react play well with PhantomJS.