Using JSONP, Split code into autocomplete, main