updated refactored barlaye.catalog.js