Search js fix for mobile view