Fixing issue #208

Uses a browser dialog to warn the user when they are navigating away from the survey