Here is the warning I am receiving, while I use js-api and also without it. It isn't possible to write into a document from an asynchronously-loaded external script unless it is explicitly opened.
Do you have a jsbin that repos this?