         
         # Remove the callback
         document.onkeydown = null
-    
-    # PJM: Pan and zoom to fill viewer:
-    # @wfits.setXOffset(0.5)
-    # @wfits.setYOffset(0.5)
-    # @wfits.setZoom(2.0)    
-    # The above lines do not work - the image appears with standard offsets and zoom, and
-    # apparently with a over=exposed blue channel! And then as brighter, bluer etc are selected,
-    # the data disappears... 
     
     @append("""
       <div class='viewer-tools'>

    @wfits = new astro.WebFITS(@el.find('.webfits')[0], @dimension)
    @wfits.setupControls()

    
    # Create new deferreds for each channel
    for band in @bands
      @dfs[band] = new $.Deferred()

    super
    
    @calibrations = {}
    @provenances = {}
    
    @dfs =
      webfits: new $.Deferred()
      fitsjs: new $.Deferred()
    
    url = "javascripts/webfits-canvas.js"
    $.getScript(url, =>
      @dfs.webfits.resolve()
    )

    $.getScript("javascripts/fits.js", =>
      @dfs.fitsjs.resolve()
    )
