js: xpath_snapshot