Backend testing stuff

Wrote a printCalc function, hacked together a quick test.html page,
created a readInput function.