js click events fixed