addad calculations() to main.js