js bind this to event listener code example
Example: js addeventlistener
var element=document.getElementById("some_id");
var listener=element.addEventListener('click',function(event){
});
var element=document.getElementById("some_id");
var listener=element.addEventListener('click',function(event){
});