Simple calculator using JavaScript