Fix processMath script for IE8, hopefully

IE8 doesn't like .text() on a script element; see http://stackoverflow.com/q/6720257/49485. Move to the same solution for setting text that we use in a couple of other places.

Test Plan:
Loaded quadrilateral_angles.html?seed=186&problem=isoscelesTrap1 without errors in Chrome.

Auditors: emily