CS-4786: js fix for searching

js fix for searching of image inside attach image media library view