Removed domain variable, replaced with root_url.
Added loading div to be used when large datasets are loading.