Upgrade for React 0.12 compatibility

Test Plan: I have no idea how to test this.
Merge pull request #6 from spicyj/mathhax-012

Upgrade for React 0.12 compatibility