Build a calculator using java script