html templating for scripts