old_contents: if ("console" in window) {
    var styles = [, 'color: hotpink', 'display: block', 'line-height: 40px', 'text-align: center', 'font-weight: bold', 'font-size: 2em'].join(';');
    console.log('%c Such develop such wow you opened the console. ✨', styles);
  }
  
  function notify(id) {
    if ("Notification" in window) {
      fireNotification('Ajax has scored!', 'FEY ' + db.get(id).FEY + ' - ' + db.get(id).AJA + ' AJA', 'img/ajax-icon.png', 'ned-bul', 'img/ajax.jpg');
    } else {
      alert("Unfortunately you browser doesn't support browser notifications. :( However you can still use our default notifications.")
    }
  }
  
  function askPermission() {
    // Check if something is not 'denied' so that means 'default' or 'granted'.
    if (("Notification" in window) && Notification.permission !== "denied") {
      // API knows it doesn't need to ask for permission if 'granted'.
      Notification.requestPermission();
    }
  }
  
  function fireNotification(title, body, icon, tag, image) {
    var options = {
      body: body,
      icon: icon,
      tag: tag,
      image: image,
    }
    var notification = new Notification(title, options);
  }
  
  askPermission();
  
  function updateDOM(id) {
    document.getElementsByTagName('H2')[0].innerHTML =
    'Score: '
    + '<br>'
    + 'FEY ' + db.get(id).FEY
    + ' - '
    + db.get(id).AJA + ' AJA'
  };
  
  // Use getElementBy for Internet Explorer
  function clickLightbox(id) {
    setTimeout(
      function() {
        document.getElementById('lightboxajax').innerHTML =
        '<div id="lightbox">'
        + '<div class="box">'
        + '<button onclick="removeBox()">close ✖</button>'
        + '<p>Ajax has scored a goal!</p>'
        + '<p><strong>The current standing is:</strong></p>'
        +  '<p>FEY ' + db.get(id).FEY + ' - ' + db.get(id).AJA + ' AJA</p>'
        +  '</div>';
        +  '</div>';
      }, 3000
    )
  }
  
  var element = document.getElementById('clickLightbox');
  
  // AttachEvent for older IE
  element.attachEvent("onclick", onButtonClick);
  
  var counter = 0;
  
  function onButtonClick(event) {
    notify(counter);
    clickLightbox(counter);
    updateDOM(counter);
    counter++;
  }
  
  function removeBox() {
    var removeBox = document.getElementById('lightbox');
    removeBox.parentNode.removeChild(removeBox);
  }
  
new_contents: if ("console" in window) {
    var styles = [, 'color: hotpink', 'display: block', 'line-height: 40px', 'text-align: center', 'font-weight: bold', 'font-size: 2em'].join(';');
    console.log('%c Such develop such wow you opened the console. ✨', styles);
  }
  
  function notify(id) {
    if ("Notification" in window) {
      fireNotification('Ajax has scored!', 'FEY ' + db.get(id).FEY + ' - ' + db.get(id).AJA + ' AJA', 'img/ajax-icon.png', 'ned-bul', 'img/ajax.jpg');
    } else {
      alert("Unfortunately you browser doesn't support browser notifications. :( However you can still use our default notifications.")
    }
  }
  
  function askPermission() {
    // Check if something is not 'denied' so that means 'default' or 'granted'.
    if (("Notification" in window) && Notification.permission !== "denied") {
      // API knows it doesn't need to ask for permission if 'granted'.
      Notification.requestPermission();
    }
  }
  
  function fireNotification(title, body, icon, tag, image) {
    var options = {
      body: body,
      icon: icon,
      tag: tag,
      image: image,
    }
    setTimeout(function() {
        var notification = new Notification(title, options);
      }, 3000
    )
  }
  
  askPermission();
  
  function updateDOM(id) {
    setTimeout(
      function() {
        document.getElementsByTagName('H2')[0].innerHTML =
        'Score: '
        + '<br>'
        + 'FEY ' + db.get(id).FEY
        + ' - '
        + db.get(id).AJA + ' AJA'
      }, 3000
    )
  };
  
  // Use getElementBy for Internet Explorer
  function clickLightbox(id) {
    setTimeout(
      function() {
        document.getElementById('lightboxajax').innerHTML =
        '<div id="lightbox">'
        + '<div class="box">'
        + '<button onclick="removeBox()">close ✖</button>'
        + '<p>Ajax has scored a goal!</p>'
        + '<p><strong>The current standing is:</strong></p>'
        +  '<p>FEY ' + db.get(id).FEY + ' - ' + db.get(id).AJA + ' AJA</p>'
        +  '</div>';
        +  '</div>';
      }, 3000
    )
  }
  
  var element = document.getElementById('clickLightbox');
  
  // Check if attachEvent is in window
  if (window.attachEvent) {
    // AttachEvent for older IE
    element.attachEvent("onclick", onButtonClick);
  } else {
    element.onclick = onButtonClick;
  }
  
  var counter = 0;
  
  function onButtonClick(event) {
    notify(counter);
    clickLightbox(counter);
    updateDOM(counter);
    counter++;
  }
  
  function removeBox() {
    var removeBox = document.getElementById('lightbox');
    removeBox.parentNode.removeChild(removeBox);
  }
  
subject: Fix attachEvent ie