Correct xpath.js path in template html files