Fix implicit globals in kanban_gauge JS