Made html standards compliant
Made things work in IE8, fixes #2