Bootstrap ajax - changing header on sign in. broken sign out event scope