javascript survey creation