UNIX globbing (wildcard matching) for javascript