implement majority of create survey function mvc js