Sono riuscito a scrivere quello che mi serve in ASP. Quello che chiedo ora è: si può "tradurre" in javascript?

codice:
<%
    Dim url,strArr,xmlhttp,ciao
    
    url = "http://sito.it"
    
    set xmlhttp = CreateObject("MSXML2.ServerXMLHTTP") 
    xmlhttp.open "GET", url, false 
    xmlhttp.send "" 
    
    strArr = split(xmlhttp.responseText, ">")
    set xmlhttp = nothing 
    
    ciao=mid(strArr(45), 2)
    Response.Write "<"
    response.Write ciao
    Response.Write ">"
 %>