Quick fix for thread not loading on time

Move it to header.
Set startLoading() to execute 1s after DOM ready.