fixed #26 Smarty: clean up index.php file