Can't json parse undefined things. Set a basic json response if localStorage.beers is null
organized js files into different directories