a simple template engine for PHP/Jquery