convert mathslate.php to HTML