 element.addEventListener(event_name, (function(element) {
          return function(event) {
            on_event(element, event.type);
          }
        })(element));
      };
    }

    phases[0].element.focus();

  });

</script>
