     slider_div = $('<div id="gain-slider" style="width: 200px;"></div>')
     slider_div.slider({
       animate: "fast",
-      step: 0.1
+      step: 0.1,
       min: GAIN_MIN,
       max: GAIN_MAX,
       value: GAIN_DEFAULT,

      tools: []
    )

    glyphspec = {
      type: 'annular_wedge',
      line_color: null
      x: 0
      y: 0
      fill: '#688AB9'
      fill_alpha: 'fill_alpha'
      inner_radius: 'inner_radius'
      outer_radius: 'outer_radius'
      start_angle: 'start_angle'
      end_angle: 'end_angle'
    }

    glyph = Collections('GlyphRenderer').create({
      data_source: @source
      xdata_range: @range
      ydata_range: @range
      glyphspec: glyphspec
    })

    @model.add_renderers([glyph])

    for i in [0..(data[1].length-1)]
      data[1][i] *= @gain

    @spec_plot.update(data[0])

    @power_plot.update(data[1])

    @fft_plot.update(data[0])

    @hist_plot.update(data[0], @fft_range[0], @fft_range[1])

  set_freq_range : (event, ui) ->
    [min, max] = @fft_range = ui.values
