add phantomjs to detect and path