You open a wrong page.

 if(serious){
       document.close()
    }
   else{
    console.log('waste your time in blank profile')
   }

ERR : 49 serious is undefined. Please check that you have feed this variable or initialize them correctly.