Modified xpath.js to return short xpath instead of full explicit path