Fixed JS bug introduced in formatting update.