correction of favoritesquestion.js optimized for server