Final working code in place.
Remove wrong localstorage