http://reference.wolfram.com/mathematica/guide/Mathematica.h...
Wolfram|Alpha has an API that can be called using JavaScript (for a fee), so some mixed solution is also worth considering.
http://reference.wolfram.com/mathematica/guide/Mathematica.h...