A small improvement though: You are loading every domain as HTML which can be problem (as its taking a lot of time to load the page).
Different solutions: a backend script or a separate js file with all the domains (that's loaded late - after the page has been loaded)