A JavaScript truth table generator with MathJax preview