Adding the javascript for testing the output of the html form.