I think the problem is that you keep over writing userInfo
in your localStorage. You should be keying on something unique, like profile.
var current = {};
current.profile = profile;
current.name = $(data).find('.userName').text();
localStorage.setItem(profile, JSON.stringify(current));