updated html template script