initForm for memberships in javascript