Added functionality to update DOM when data is available.
Removed jQuery – looks like vanilla JS is all we need...
Added function for toggling loading class on main element.