Add support for writing document-scope Javascript
To write global script, use script tag with data-acroform-include="true"
and set script name with data-acroform-script-name="...".