trying some fixes with the token and localStorage

it doesn't yet work for me, still unable to store the token in
localStorage during or after the ajax call....