document.getElementsByClassName('calen').forEach(function(elem) { elem.onclick = function(e, elem) { console.log('ура'); } });
document.body.onclick = function(e) { if ( !e.target.classList.contains('calen') ) return; console.log('ура'); };
ms = e.getAttribute('id');