     script -> """
         subject = "#{@subject.replace(/"/g, '\\"')}"
         video = "#{@video}"
+        videoName = "#{@videoName}"
       """
 
     video id:"video", width:640, height:480, ->

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



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