header dropdown issue with js