Corrected survey JS code

references code4aap/drupal-aap-campaign#117