First stab at creating a simple calculator using JavaScript