Alert using CE - onAction event not firing

This is the example from the githib. If I put in the (), then the function just executes when I clock button4.