how to get variable in local storage in javascript