php templating, ajax, and tooltips!