oken="<%=token%>";
    window.taskd.i18n=<% luci.http.write_json(i18n) %>;
    window.taskd.dialog_template=`
    <div id="tasks_dialog">
        <div class="dialog-title-bar">
            <span class="dialog-title" id="tasks_id"></span>
            <span class="dialog-icons">
                <span class="dialog-icon dialog-icon-close" title="<%:Stop and Remove%>"></span>
                <span class="dialog-icon dialog-icon-min" title="<%:Hide%>"></span>
            </span>
        </div>
        <div class