solve js click function issue