use `system.args` as `phantom.args` is deprecated
minor tweaks
return after `phantom.exit()` as it doesn't exit right away

I hate PhantomJS so much I want to cry...