       onValueChange = (e, ui) ->
         buffer.push
           subject: subject
-          video: video
+          video: videoName
           time: $("#video").get(0).currentTime
           value: ui.value
           playing: $("#video").data("isPlaying")

  @get '/video': -> 
    @render video:
      video: video.location + @query.video
      subject: @query.subject



    script -> """
        subject = "#{@subject.replace(/"/g, '\\"')}"
        video = "#{@video}"
        videoName = "#{@videoName}"
      """

    video id:"video", width:640, height:480, ->
