body.on('click','#makeurgent',function(){makeUrgent(this);}); function makeUrgent(button) { var dict = new Object(); //or Map() dict['seturgent'] = button.parentElement.id; sendAjax('', dict, Reload); }