if (document.getElementById('print-button')) {
document.getElementById('print-button').addEventListener("click", function () {
  window.print();
});
}