update js config