window.addEvent('domready', function() {
	//add span tag to first word of each <h1>
	$$('h1, h2').each(function(el) {
		var newText = el.get('text').trim().replace(/^(\w+)/, '<span>$1</span>');
		el.set('html', newText);
	});
});

