var PLAYER = {
  points: 0
}

function earnPoints() {
  PLAYER.points += 1
}

$(document).ready(function() {
  $('#popcornkernel').click(earnPoints);
})

var PLAYER = {
  points: 0
}

function earnPoints() {
  PLAYER.points += 1
  updateUI()
}

function updateUI() {
  $('#points').text(PLAYER.points)
}

$(document).ready(function() {
  $('#popcornkernel').click(earnPoints);
})

Update points in UI after every points update
Update points in UI after every points update
