update js slider