Popular Search : Conditionally Add Property To Object Javascript Es6