search/add + js fixes