working commit - search function working (php + js)