$(document).ready(function()

  {

    game = new Game();


    var displayTemp = (function() {
      $('#output').html(game.score);
    });
      displayTemp();
});

$(document).ready(function()

  {

    game = new Game();


    var displayScore = (function() {
      $('#output').html(game.score);
    });
      displayScore();
});

add jquery