added ability to pass custom function to phantomjs-node for stdout and stderr
Merge pull request #2 from thoop/master

Ability to pass custom function to phantomjs-node for stdout and stderr