[javascript] How to pass the id of an element that triggers an `onclick` event to the event handling function