Added some JavaScript so that value typed by the user in the form get sent to the server