Updated to allow watching mode to work with HTML files.