Filter only javascript files when reading `lib/modules` folder.

Filter some hidden files such .DS_Store files.