Get 'back' button working with javascript dialogs again.