function init(event) {
    if (event) {
      event.preventDefault()
    }
    templateInput.value = templateDemoNode.innerHTML.replace(
      // Replace unnecessary whitespace:
      /^\n|\s+$| {6}/g,
      ''
    )
    dataInput.value = JSON.stringify(
      JSON.parse(templateDataNode.innerHTML),
      null,
      2
    )
    empty(resultNode)
  }
Initialization function

@param {event} [event] Initialixation event