JGRaider is right. “The Word” in John 1 is clearly a reference to Jesus Himself, as evidenced in other verses later in the same chapter: “the Word became flesh, and dwelt among us” (for example).
So it’s “In the beginning was Jesus, and Jesus was with God, and Jesus WAS God”.