Changing backwards compatibility JS syntax