Don't use native indexOf

Test Plan: Use KaTeX to render "\Large{123}" in IE8

Auditors: alpert