Create calc.js

The main JavaScript file. You can consider this file as the project itself, and the other files as just optional.