Update main.js

Implement autocomplete loading tizen apis without write inflexible.