update js on store-load