Ajax, Smarty and friends