A simple calculator using JavaScript