 
   # Seek to bookmark and play video.
   $('.bookmarks-select').on 'change', (e) ->
-    console.log('this:', this)
     $selected_bookmark = $($(this).find(':selected'))
-    console.log('selected data:', $selected_bookmark.data())
+
     if $selected_bookmark.data().dvd?
       $player = $("*[data-dvd='#{$selected_bookmark.data().dvd}']")[0]
     else if $selected_bookmark.data().episode?
       $player = $("*[data-episode='#{$selected_bookmark.data().episode}']")[0]
 
     $player.currentTime = $selected_bookmark.data().time
-    console.log('$player.currentTime:', $player.currentTime)
-    $player.bookmarked = true
-#    $player.unbind('play')
-#    $player.play()
+    $($player).unbind('play')
+    $player.play()
 
 
   #


    videoTime = getVideoTime(this.currentTime)

    console.log('$player.bookmarked:', $player.bookmarked)
    if $player.bookmarked == undefined
      if $player.hasClass('episode')
        url = '/episodes/'
      else
        url = '/dvds/'

      $.get(url + $player.data().id + '.json').then (data) ->
          self.currentTime = data.playback_time;
          self.play()
    else
      self.play()

  # Play and pause on space bar.
  $('.player').on 'keyup', (e) ->

    reader = new FileReader()

    reader.onload = (e) ->
      $img = $('<img id="dynamic">')
      $img.attr('src', e.target.result)
      $img.appendTo('.image_to_upload')
