responsive style with js when refresh