src/phantom_script.js
function wrap(str, dollarName, doneName) {
  return doneName ?
    '(function(' + dollarName + ', ' + doneName + ', undefined){' + str + '})(artoo.$, artoo.done);' :
    '(function(' + dollarName + ', undefined){' + str + '})(artoo.$);';
}
function wrap(str, dollarName, doneName) {
  return doneName ?
    '(function(' + dollarName + ', ' + doneName + ', undefined){' + str + '})(artoo.$, artoo.done);' :
    '(function(' + dollarName + ', undefined){' + str + '})(artoo.$);';
}
function wrap ( str , dollarName , doneName ) { return doneName ? '(function(' + dollarName + ', ' + doneName + ', undefined){' + str + '})(artoo.$, artoo.done);' : '(function(' + dollarName + ', undefined){' + str + '})(artoo.$);' ; }
Wrap in context to name several really important variables
Wrap in context to name several really important variables