Now that we have a basic layer tree, it's time to add some logic when adding layers. In this example, called
ch03_addlayer, we will extend our code so far with some layer requesting and WMS metadata fetching capabilities. We will add every additional method to the object's prototype for the sake of clarity and performance.
<div id="addwms" class="toggleable" ...