   });
  $('#form').append(layout2Style);
}

var layout2Style = `<style>
#form div.row { margin: 5px; }
#form div.row div { font-weight: bold; }
#form div.row input[type=text] { width: 140px; }
#form div.submit-row { text-align: center; }
</style>`;

var layout3 = function (checker) {
  var genreBox = $('<input type=text>');
  var nameBox = $('<input type=text>');
  var yearBox = $('<input type=text>');
  var rows = [
    $('<tr>').append('<th>Genre</th>').append($('<td>').append(genreBox)),
    $('<tr>').a