In the Torah, when God destroyed Sodom, the term used for God is the same for God in Heaven as He is God while on Earth. The Torah is specific it's the SAME PERSON GOD being Omnipresent in Heaven and while on Earth.
כדוַֽיהֹוָ֗ה הִמְטִ֧יר עַל־סְדֹ֛ם וְעַל־עֲמֹרָ֖ה גָּפְרִ֣ית וָאֵ֑שׁ מֵאֵ֥ת יְהֹוָ֖ה מִן־הַשָּׁמָֽיִם:
Genesis 19:24
Then the LORD rained upon Sodom and upon Gomorrah brimstone and fire from the LORD out of heaven;
^
According to the Hebrew, The LORD in HEAVEN was at the same time the LORD on EARTH (Omnipresent)!
World English Bible
Then Yahweh rained on Sodom and on Gomorrah sulfur and fire from Yahweh out of the sky.
Young's Literal Translation
and Jehovah hath rained upon Sodom and upon Gomorrah brimstone and fire from Jehovah, from the heavens;
It literally translates the SAME PERSON is in 2 places performing one act!
^
Knowing this, we can see how the WORD and GOD are the same Person in 2 different places at once. Therefore, Genesis and John 1:1 can be viewed as GOD being OMNIPRESENT in 2 places at one time!