consolidate itembyname detail js