We find out later in John I that this reference to "God" is actually a reference to Jesus. He who created us came and saved us.

"He" was with God... The "Word" in vs 1 & and the "He" in vs 2 is surely Jesus.

Genesis 1:1, John 1:1-3 and John 1:14