switched wholeNodeFromId to use jquery and optimized to breakout of the each loop early if the wholeNode is found