The “sh” sound — often represented in writing as an “x” — transformed in all different ways to the “j” letter (and the accompanying mouth-clearing sound, influenced by Arabic) as late Latin turned into Spanish. See lots of examples: sherry/jerez, for example.
Here’s another: the common Spanish word, dejar, meaning, “to leave to the side” or “to put down” or to “put away” or to just “let go.”
Dejare comes from the Latin laxare, meaning, “to loosen”. From this same root, we get a few English words — which did not go through the x-to-j transformation Spanish did including: