* JS. Updated cm.getNodes() function.