Moved 'zoom to world extent'  to a proper button on the map and added animation to the zoomToExtent function.  Also modified the legend to use the getFeatureLayers function rather than doing the same logic itself.