refactored generateProgressDivMarkup(): pulled message out into a method argument. added docblock.
shuffled things around to show "loading course details" message early on.