Ajax is now instantaneous (read more below)

When the user submits the form, it will now immediately show their
submission in the list *before* there is an ajax response. If ajax
responds with an error, then it will remove the submission. I think this
makes the site feel more responsive.
Refactored js that was duplicating ruby code