Updates so that it is possible in javascript to dynamically add widgets, not only to the first region within a page, but any region found in the page.