In the ghost.injectScripts function is an error. Currently Array.slice() is used, which is undefined. https://github.com/KevinGrandon/ghostjs/blob/master/ghostjs-core/src/ghostjs.js#L127 You can instead use: [].slice() or Array.protoype.slice()