title: Can't connect Node and Phantom with custom User-agent values
body: <p>I have the code that work on <strong>Phantom.js</strong> only with custom User-agent values. But when I'm trying to wrap this code by <strong><a href="https://npmjs.org/package/phantom" rel="nofollow">npm phantom</a></strong> for <strong>Node.js</strong> I've got a problem with setting value of User-agent. As I understood from module description it should be smth like this <strong>p.page.set('settings', { ... })</strong> </p>
  
  <p>It doesn't work even with exemple code:</p>
  
  <pre><code>var phantom = require('phantom');
  
  phantom.create(function(ph) {
    return ph.createPage(function(page) {
      return p.page.set('settings', {userAgent: 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/28.0.1500.71 Safari/537.36'});
      // or p.page.set('settings.userAgent', 'Mozilla ....');
      return page.open("http://www.google.com", function(status) {
        return page.evaluate((function() {
          return document.title;
        }), function(result) {
          console.log('Page title is ' + result);
          return ph.exit();
  }); }); }); });
  </code></pre>
  
  <p>Where should I insert this code - after <strong>phantom.create</strong> or after <strong>ph.createPage</strong> and why it return me an error </p>
  
  <pre><code>stream.js:94
        throw er; // Unhandled stream error in pipe.
              ^
  ReferenceError: p is not defined
  </code></pre>