reduce the number of nodes that need to be iterated on
remove dependency to rely on requirejs