A simple calculator in object-oriented Javascript