Fixed malformed HTML when including scripts in JavascriptRenderer