JS tweak to correct casing