   class Remote 
     constructor: (@url) ->
       @driver = {}
-      this.setupRemote
+      this.setupRemote()
     # Based on url, load corresponding remote driver  
     setupRemote: () -> 
       @driver = switch
-        when @url.indexOf('http://speakerdeck.com/') > 1 then new SpeakerdeskRemote
-        when @url.indexOf('http://slideshare.net/') > 1  then new SlideshareRemote
-        when @url.indexOf('http://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('://www.scribd.com/') > 1  then new ScribdRemote
         else new RabbitRemote
 
     previous: () ->

      console? && console.log @container

    getCurrentSlideScreenshot: () ->

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


  class SlideshareRemote extends RemoteControlDriver
  class ScribdRemote extends RemoteControlDriver

  Connection = Backbone.Model.extend({})
  Slide = Backbone.Model.extend({})
  
  ToggleView = Backbone.View.extend 
    tagName: 'div'
    className: 'qslide'
    id: 'qslideSwitch'
    template: _.template '<a class="" href="#">Show</a>'

  WelcomeView = Backbone.View.extend   
    tagName: 'div'
    className: 'qcommander'
    id: 'qcommander'
    template: _.template '
    <h4 class="js-close-welcome">Close</h4>

    <h4>More detail help</h4>
    <h4>Slideshow Token: <%= token %> </h4><img src="<%= bc %>" alt="Waiting for token" />
    '

  AppView = Backbone.View.extend
    tagName: 'div'
    className: 'qcommander'
    id: 'qcommander'
    template: _.template '
    <h4 class="js-close-welcome">Close</h4>

    <h4>More detail help</h4>
    <h4>Slideshow Token: <%= token %> </h4><img src="<%= bc %>" alt="Waiting for token" />
    '
