add setTimeOut in main.js
load in thread