Replaced the usage of 'innerHTML' for updating label text with 'textContent' to conform to security issues. Added charset utf-8 in the html files for HTML5 conformance.