Move setTimeoutWithProgressbar to main.js

Done!