Moved completion code into a new div and modified instruction text; Switched to jQuery for beforeunload event.