Update JavaScript toJSON API documentation URL

The previous link to MDN had rotted, this seems to be the closest correct URL.