Refactored archive detail to services.js