It is very interesting to read Locke and Rousseau right next to each other and observe the subtle differences. The careful reader will observe Locke's reliance on Natural Law in the religious sense and Rousseau's lack thereof.
If Locke is using religion, be sure to look closely. It's a sham.