code: function fn(p, callback) {
  
    // Handling polymorphism
    if (typeof p === 'function') {
      callback = p;
      p = null;
    }
  
    // Merging defaults
    var params = extend(p, defaults.spawn);
  
    // Registering phantom bindings
    params.bindings = path.join(__dirname, '..', 'phantom', 'bindings.js');
  
    // Registering phantom required parameters
    params.data = extend(
      {
        paths: {
          // artoo: artoo.paths.phantom,
          artoo: __dirname + '/../temp/artoo.phantom.js',
          jquery: require.resolve('jquery')
        }
      },
      params.data
    );
  
    // Creating spawn
    var spawn = new Spawn(params);
  
    // Starting
    spawn.start(function(err) {
      if (err)
        return callback(err);
  
      callback(null, spawn);
    });
  }
docs: Exporting