Move JSDoc comments to be above functions
Change sendSurvey to take success and error callback functions.
Use these callbacks for handling control flow for success, error, and
timeout conditions.
Set default timeout for survey submission to 4s.