jquery

document.getElementById('foo').innerHTML = 'Hello';

->

$('foo').text('Hello');