Changes in case of Content Security Policy

Content security disallows the use of in-line script. This feature request is here to be merged in case the API introduces content security policy, which is likely to happen.