Refactored archive search to services.js