Implement the loading overlay and tidy up the demo webpage.