Edit in JSFiddle

var eventHandler = function(){
    alert("Handler is executing");
}

function someAction(){
    eventHandler();
}

//someAction();