<=IE8 support fix

HTML element creation with jQuery needs to have valid tags. Newer browsers automatically correct the error,but IE8 and less do not. Non-self-closing HTML tags need closing tags to be valid.