Fix HTML5 errors

Thanks to Ira Hanson for pointing this out.