I combined both JS into one and that seems to work. However I remove the following code then the code does not work at all meaning autopopulate does not happen after type in 3 characters into the text box.
window.onload = function() {
window.setTimeout(readyCall, 1000);
}