le.timeEnd('Spaghetti domToWorkspace');
      }

      var spaghettiXml = [
        '  <block type="control_repeat">',
        '    <value name="TIMES">',
        '      <shadow type="math_whole_number">',
        '        <field name="NUM">10</field>',
        '      </shadow>',
        '    </value>',
        '    <statement name="SUBSTACK"></statement>',
        '    <next></next>',
        '  </block>'
      ].join('\n');

      function setSoundsEnabled(state) {
        var checkbox = document.getEleme