relations/HtmlScript: set the nodes type attribute to the target assets content type if the target asset is not of type JavaScript