Actually, there are many fantasy creatures in many parts of our world-like the
trolls in Scandinavia or the
ogres in Britain & France & if stories or fairytales originating in one region travel to another, like
the Cinderella story, they often incorporate elements of those particular region.
All this is perfectly understandable, however, its presumptuous to claim that those fairy tale books contain scientific knowledge which was much ahead of the times.

If they do make such grandoise claims, like Islam does, it better live up to those claims & not contain any absurd stuff!
Like this one about djinns:
Sahih Bukhari,
Volume 5, Book 58, Number 200:
Narrated Abu Huraira:
... in the company of the Prophet ... I walked with him and asked, "What about the bone and the animal dung?" He said, "They are of the food of Jinns."

So Muhammad believes that the world is full of invisible, shit eating ghosts!

The mythology about djinns pervaded Arabia & Muhammad too believed in these, when he supposedly received his first revelation, he thought he had become a
majnun, djinni possesed, & all the Arabian soothesayers or
kahins would act as if they were receiving messages from djinns when they made prophesies.
Just like stories of Cinderella added on regional elements as it was retold in different lands, so did Jewish stories when they were retold in garbled form by Muhammad, either he himself added Arabian myths to those stories, or else Allah had a major

when He incorporated djinns constructing palaces & realising people are dead only after seeing worms into His update of the monotheistic tale of Judaism by an Arabian djinn believing man!