Got over it, the problem was not because of the javascript, the Dynamic multiple text box has the same name and hence the autocomplete was unable to recognize request from which text box was coming from. Indexing the dynamically loaded textbox helped me get over it. Thanks for all the suggestions and updates.
Hope this helps someone in future.