Check If Button Is Clicked Javascript