Combining deals.js & nearest.js into deals.js