split forms js into two