Basic boilerplate code for spawning phantomjs processes via node.