Fix JS syntax