fix output div ordering in html

fixes ipython/nbviewer#17