Updated index and do_costdivide.js