Actually, I'd probably just use some of the javascript framework I've got to do that. :-)