reformated catalog.js