Update to work with phantomjs 1.9

Script wasn't working with newer version of phantomjs.
Re-add exit code.

Accidentally removed exit code.