modify the sentence to remove the grammatical flaws
The reason lies beneath could be the confidence Myspace had over their program because of the size of their resources which Facebook didn't have.
The underlying reason could be the confidence Myspace had over their program because of the size of their resources, which Facebook didn't have.