some helpers to make form js easier