Recursive calculator, client-side.