Who created everything in the beginning?

Two people spoke to God at different times and wrote about the beginning. They were Moses and John. Each one spoke to God many times. Each one tells who was there in the beginning.

In Genesis chapter 1, Moses says the Spirit was there. In John chapter 1, John says Jesus was there. Both say God was there. We they right?