it's a curious mix of jQuery (I assume) and vanilla js you have there, but in vanilla you set the innerHTML like this:

document.getElementById(oppid).innerHTML=data.downvalue;


in jQuery it...