check if phantomjs exists before testing