FileLister support to onbeforeunload pages