js dropdown click status working