Creating location localstorage model