ok object js recursive