Fixes JS syntax