added web interface, fixed minor formatting issues in math.js