Added a line to calculateFinalPercent()

The main text field is now cleared when a form is submitted.