Fixes #8098. Use the fast document.head when available. Don't set unneeded "script.type = text/javascript".
Attach a file by drag & drop or click to upload