Create calculator.js

the javascript file to evaluate expressions.