add clicked button element to javascript event controller