I have quite a few points to make here.
Firstly, James was a convert
to the Roman Catholic Church, so to state him converting is asb is wrong, why not stop him converting in the first place?
Secondly, in quite a few areas he was years ahead of his time. If you want an example, he favoured religious tolerance, which combined with his personal faith and the birth of his son is what lost him his throne.
Thirdly, the way the thread has been going, you would think England, Scotland and Ireland were democratic havens at the time, they were anything but, as the number of elelctors would suggest.
The main benefit of the Glorious Revolution, in my opinion in Scotland where the powers of the Parliament were increased by the abolition of the Lords of the Articles. In England it also increased the power of Parliament(read the Lords). Overall, I think the revolution was good in the long run down to this.
The Test Act was wrong however, and James was right to oppose it.
The following is a link if anyone wants source material from the time.
http://www.jacobite.ca/documents/index.htm
To keep him in the throne, simply have him not convert to the Roman Catholic faith and keep his mouth shut over controversial issues.