Move debug click handler to body (inside document)