Doesn't need to be fixed, but fyi dom.create accepts a third argument, the parent node to append to.  So you could just do `dom.create( 'div',{},opBar)` here.