saveHTML so scripts are intact