area .widget').on('click', function(){
    var elemType = $(this).find('input, textarea, button')[0].getAttribute('data-type');
    widget_state = elemType === chosenElement ? 1.0 : -1.0;
  });

  var eGenre = core.sample(GENRES).toLowerCase();
  var eName = core.sample(ui_utils.LAST_NAMES);
  var eYear = core.randi(1970, 2018);
  // $('#query').html('Search for <b>' + eGenre + '</b> movies directed by <b>' + eName + '</b> from year <b>' + eYear + '</b>.');
  var checker = function (cGenre, cName, cYear) {
