moved location of takesurvey alerts and made all ajax async for compatibility