Improve JavaScript support (autocomplete fix)

Improved https://github.com/crucialfelix/django-ajax-selects/pull/44/files#r3610996.
Just another try for jquery autocomplete issue (quick hack for saving backward compactibility).