Update JavaScript toJSON API documentation URL

The previous link to MDN had rotted, this seems to be the closest correct URL.
Merge pull request #3258 from NotBobTheBuilder/master

Update JavaScript toJSON API documentation URL