fixed HTML validation errors found after JS insertion