Fixing issues with arguments passed to phantomjs

I fixed following issues connected with phantomjs arguments:
* there were `--undefined=value`
* fixed order of arguments: phantomjs args should be set before script name.