Here's a breakdown:
* Koekje (Dutch) - A small cake or cookie
* Koek (Dutch) - Cake
* Cookie (English) - A small, flat, sweet baked good
It's believed that Dutch settlers brought the word and the treat to America, where it became popular and eventually adopted into the English language.