Use of JavaScript for taking data from user in a form.