add gemfile, edit index and calc.js