Removed phantom.exit() line at end of file causing script to exit prematurely.