Attached js to form.