Get Index Of Value In Object Javascript