Cleaned up supermarket.js