Javascript to convert simplified latex to html