Browserify transform to fallback node.js basics in PhantomJS