     # Based on url, load corresponding remote driver  
     setupRemote: () -> 
       @driver = switch
-        when @url.indexOf('://speakerdeck.com/') > 1 then new SpeakerdeskRemote
-        when @url.indexOf('://slideshare.net/') > 1  then new SlideshareRemote
-        when @url.indexOf('://www.scribd.com/') > 1  then new ScribdRemote
+        when @url.indexOf('speakerdeck.com/') > 1 then new SpeakerdeskRemote
+        when @url.indexOf('slideshare.net/') > 1  then new SlideshareRemote
+        when @url.indexOf('scribd.com/') > 1  then new ScribdRemote
         else new RabbitRemote
 
     getCurrentSlide: () ->

  class SlideshareRemote extends RemoteControlDriver
    constructor: () ->
      super
      @container = $('.speakerdeck-iframe ').contents()
      console? && console.log @container

    getCurrentSlideScreenshot: () ->
      $('#player-content-wrapper > #slide_image', @container).prop('src')

    next: () ->
      $('.overnav > .next', @container)[0].click()
    previous: () ->
      $('.overnav > .prev', @container)[0].click()

  class ScribdRemote extends RemoteControlDriver
  class RabbitRemote extends RemoteControlDriver

  class SpeakerdeskRemote extends RemoteControlDriver 
    constructor: () ->
      super
      # The player is put inside a iframe so, let get its contents
      @container = $('.speakerdeck-iframe ').contents()
      console? && console.log @container

    getCurrentSlideNumber: () ->
      $('.goToSlideLabel > input', @container).val()

    getCurrentSlideScreenshot: () ->
      $('#player-content-wrapper > #slide_image', @container).prop('src')
    
    first: () ->
    last: () ->
    next: () ->
      $('.overnav > .next', @container)[0].click()
    previous: () ->
