put localstorage to another js
localstorage function