Its a Giant cluster trying to find out exactly which Pagan god the Jews worshiped. Evidence seems to indicate they worshiped for a time El, Baal Hadad, Asherah, maybe a god named Shulmanu. There are references in the scriptures that they worshiped gods of Egypt and even clues that they took on the gods of Babylon. The stories of Genesis are Babylonioan and so are the gods. So maybe what really happened is the people who were putting together the bible were like "I don't know what god the writer is refuring to here so i'm going to just put YHwh.
Its also interesting that the word Elohim is used in most scritpures which means Gods. People have said this use of the plural word just means that the Hebrews used it in away to denote greatness or somethong similar. Yet Hebrew lingwists state that they can find in no other writings this idea of using a plural context of a word to denote anything other then, more then one. So could it be that the Hebrews-Jews-Israelites, were never Monothiests or atleast not until much later in thier history. I just want to finish by signing off by praising the god of the jews, so praise Yah, I mean Baal, or is it Asherah, Ra, Dagon, Yamm, Anat, El, Ea, Marduk, Enlil, Yarik, etc. etc. etc.