"text/javascript">
    var tasks = [];
    var app = Elm.Main.init({ node: document.getElementById("elm") });
    app.ports.toRust.subscribe(function (data) {
      console.debug(data);
      switch (data.cmd) {
        case "Init":
          tasks = [{ name: "Create elm example", done: true }];
          break;
        case "Log":
          console.log(data.text);
          break;
        case "AddTask":
          tasks.push({ name: data.name, done: false });
          break;
        case "MarkTask":
     