FIXED LOGIC REFACTORED CODE, now all logs are in global object array littleEye.userData, when someone leaves page if log exceeds limit it's sent to server, if not then it is saved in local storage on a single value key pair and when person opens same page to our global object array all logs from local storage are moved.