whoa I was querying the DOM on each part of the render loop