[JSC] Correct a->an in error messages and API docblocks