simple visual calculator using Ajax and RESTful services