Fixed syntax error exception in IE10.

IE does not allow inserting unclosed HTML, so either it must be
self-closed or with a closing tag.
Merge pull request #23 from heksesang/master

Fixed syntax error exception in IE10.