Create valid form js