Search function working in Chrome, not Firefox