mit = $('<button type=button>').text('Submit').appendTo('#form')
    .click(function () {
      checker(genreBox.val(), nameBox.val(), yearBox.val());
    });
  $('#form').append(layout1Style);
}

var layout1Style = `<style>
#form span { width: 50px; display: inline-block; margin-left: 10px;}
#form input[type=text] { width: 80px; }
</style>`;

var layout2 = function (checker) {
  var genreBox = $('<input type=text>');
  var nameBox = $('<input type=text>');
  var yearBox = $('<input type=text>');
  var rows