calc.js

java script for calculation