added object handling for local storage
got beers saving with local storage