     @means = {}
     @stds = {}
     
-    @container = $("#examine .subject")
+    @container = document.querySelector("#examine .subject")
     @createBandButtons()
+    @setupWebGL()
     
-  
   createBandButtons: ->
     for band in @bands
-      $("#examine .content-block").append("<button id='band-#{band}' class='band' disabled='disabled'>#{band}</button>")
+      $("#examine .content-block").append("<button id='band-#{band}' class='band' value='#{band}' disabled='disabled'>#{band}</button>")
   
   addImage: (obj) ->
     band = obj.band


class FITSViewer extends Spine.Controller
  @bins = 500
  
  constructor: ->
    super

    dataunit.getFrame()
    dataunit.getExtremes()
    
    @computeStatistics(band)
    
  # Compute histogram using inline worker
  computeStatistics: (band) ->
    dataunit = @images[band].getDataUnit()
    
    # Set up message to pass to worker
