Working on proper js results from logging in