Merge pull request #6 from barrysteyn/master

Altered templates to render math based on most recent version of plugin
Fixed error where exception would be thrown if MATH was undefined