move calculate.js to js/calculate.js