Amended JS for responsive close btn