Or maybe this could be `nodeName.lastIndexOf('_', nodeName.length - 2)`?