finished main.js
finished calculate
fix calculate
finished output.js
finished