Updated search.js to accept only predefined published content