Encapsulated autocomplete

Use this in combination with jquery autocomplete. I have seen some whack big versions of this but the code is all there in jquery autocomplete.. just need to read their api, and this is what i came up with as a result.