Added JS to handle posting the form asynchronously

The form is handled and POSTed by JS executing in the background
asynchronously.