A simple calculator implemented in JavaScript