Fix authflag in exportpage.js'