solve the jsformat issue