Please review: Issue: https://bugs.openjdk.java.net/browse/JDK-8222526 Webrev: http://cr.openjdk.java.net/~hannesw/8222526/webrev.00/
The dynamically created script element is redundant (there is a static element in the HTML file with the correct URL), so it only results in a warning in most browsers, but there may be environments where it is required for proper function. Thanks, Hannes
