Refactor node checks to globals

All /node/id# checks involving xpath expressions are using global methods in a different file