updated exit button js