New script for generating html