Changed file handling for HTML