Update API docs and demos for recent worker improvements.

Changed.
But MDN says differently about document.domain:
https://developer.mozilla.org/en-US/docs/Web/Security/Same-origin_policy
>A page may change its own origin with some limitations. A script can set the value of document.domain to a subset of the current domain. If it does so, the shorter domain is used for subsequent origin checks.