Added search metod. Updated JS functions.