Created some loops to keep my code DRY.

Async XHRs calls, an indicator showing how many stuff left to import.