I didn't notice the top.  I cleaned it up a bunch to validate everything before we began to manipulate the DOM.   Everything should be much clearer to follow now.