updated DetailsController to get details object using route params string rather than index number
changed from array of objects to array of arrays with first element of each being route name
updated products partial to fetch data from newly structured json file