3rd submit :

* replace regexp "/\b[a-z0-9]+\b/gi" by "/\w+/gi"
* replace "for(...)" loop by "array.reduce()"
* replace "undefined" comparison on array by the built-in function "key in array"