use timeout to change main.js
change main.js to add timeout