[search] modified for browser compatibility