xpath and javascript