According to
A History of God by Karen Armstrong, the Jewish religion had its roots in pagan polytheism. An "elohim" was merely the worshipper's
favorite god, like the Ishta Devata of the Hindus or the Patron/Patroness of Western pagan religions.
http://www.youtube.com/watch?v=MlnnWbkMlbg