improved html script