polyfill JSON support if not present
slightly more resilient contenteditable polyfill