Best way to create widget-like ajax page sections?

So, I have a page that is made up of 4 different AJAX containers (meaning they are populated with HTML via AJAX). I have an attachment section that refreshes the section whenever a new upload has been...