Fixed horrible IE8 issue when the DOM-tree was broken. Added correct end tag for div. Fixes #46.