Added static keyword to functions

WordPress was generating errors in WP_DEBUG mode when calling functions
without MathJax class instantiation.