Fixed code to be HTML5 compliant