Refactor Q.typeOf, so Q.each can now handle NodeLists