Seperated event listeners and notification display code
Added showNotification.js to the repo.