The situation is somewhat like-
var someVar = some_other_function(); someObj.addEventListener(\"click\", function(){ some_function(someVar); }, false); <
You need:
newElem.addEventListener('click', { handleEvent: function (event) { clickImg(parameter); } });