I noticed 2 problems with your implementation. First, you must wrap the element you want to click with the svg. You just put the div you want to click AFTER the svg and not INSIDE. Second, you div has no size so its almost impossible to click, so I added a width and height to it
<div onclick="itworked();" style="position:absolute; top:0; left:0; width:100%; height:100%">Click me</div>
I implemented this modifications to your fiddle and it worked, at least for me, in here