Frontend - Mobile: Refactor search js