Using Autocompletion() with Arrays that don't start at index 0

Using Autocompletion() with Arrays that don't start at index 0

This is more of a gotcha than an error. I am using the autocompletion() UI widget on a form input field.  The field is for a file name.  I am dynamically generating the array for this field by looping over the file names in a specific directory.  In my loop, initially I skipped any undesired names I loop over (ex. '.svn', 'thumbs.db', etc).  Since these were there in my directory and were at the top of the list, my array started on index 2 instead of index 0. That caused the widget to throw an error of "d is not undefined". 

My workaround is to have my scripting language (PHP, Coldfusion, .Net, etc) remove these values before I do the loop to make the javascript array.  You could also insert empty values for the undesired names but that's a little messy. 

Again, not really an error, but i thought I'd bring it up in case anybody else ran into it.