get the form value in the js view