Transfering to local storage instead of cookies. Currently sticks itself in an infinite loop, don't execute just yet