no more errors. it turns out that supermarket.js crashes when it does not detect any stores nearby, thus creating a null array in the object