Moved localstorage variables inside Browser check