make it work, thanks to xpathjs