update js styles