change catalog generate way in js