LPS-35440 - Fix JS syntax errors