survey javascript update