Is there a chance to replace this definition of onclick handler with another?