Convert the xpath.html to the original getxpath.js. still have issues.