changed plugin name from latex to math; separated mathjax script to external file; created additional controls and settings