base form js finished