[i.e., unto] him.” Of the 99 uses of “pros” in John’s Gospel, it is translated “unto” or “to” 86 times, but not again one time as “with.”
“Towards God” is a Greek idiom that means “pertaining to God,” or, “in the service of God.” The identical idiom is again used in Hebrews 2:17 (NASB),“Therefore, He had to be made like His brethren in all things, so that He might become a merciful and faithful high priest in things pertaining to God, to make propitiation for the sins of the people.”
"Was God” is more accurately translated as "a god." (Please see Benjamin Wilson’s Emphatic Diaglott interlinear translation.) The word "God" in this verse is the Greek word "theos," meaning "mighty one." "Theos" is applied to the Almighty God, Jesus, Satan and mighty people in the New Testament.
Jesus as "the Word" served his heavenly Father, “the God.” He was lower in rank “a god” or “mighty one” of the angelic order. The same Greek word, god, is used for mighty people in power in John 10:34-35. Jesus states the judges of Israel were called “gods” (see also Psalm 82:6). Additionally, in 2 Corinthians 4:4, Satan is called the “god (theos) of this world.”
Thus, Jesus was the “Word” of God before he was made flesh (John 1:14). He was a mighty one (a god) serving in the things pertaining to (the) God and he has had this privilege since the very beginning of time.
Jehovah had no beginning but is "from everlasting to everlasting" (Psalm 90:2), while Revelation 3:14 calls Jesus "the beginning of God's creation," as "the only begotten Son," (John 3:16, 1 John 4:9).
Jesus was "the Word" or spokesman of the Almighty because in him God revealed and executed his plan and purposes. Eastern kings usually had an officer, called the King's Word or Voice, who stood upon the steps of the throne, at the side of a lattice window covered with a curtain. Behind this curtain the king sat and expressed his commands to this officer. The Word spoke for the king. From this custom, the phraseology of the text is derived.
The title, the Word, appears also in Revelation 19:13, "He was clothed with a robe dipped in blood, and His name is called The Word of God." This text shows Jesus is God's representative or agent in the final judgment of the systems.