Update do_costdivide.js

Updated create_form() to clean up previous submits, created loop to remove previous data created by submit. In other words, added cleaning functionality.