add backup javascript function for survey validation
Merge branch 'twilio'