JAMA Citations in text not formatting correctly

I’m using JAMA style. Citations in text are superscripted numerals Inside of periods and commas…however, AMA style is numerals OUTSIDE of commas and periods. I have tried to update the style. I have tried to edit the style. I dont see anywhere in editing the style to correct the positioning of the superscript outside of periods and commas.