Add spanwith an attribute idaround what you want to change. When this time, here is all you need to do:
document.getElementById("spanIDhere").innerHTML = "Your text here";
So, for example, you will have a line:
<span id="associatespan">
<input type="button" value="Associate this job" onclick="associate()" />
</span>
script :
document.getElementById("associateSpan").innerHTML = "Look, no more button!";