Create calculator.js

The js file for javascript funtions