Adapted phantomjs sys command for server