For comparison, this is mathtran.js:
This is mimetex.cgi: