Add searchByDate javascript functionality