   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: () ->

      return this

    events:
      "click #spin": "doPlay"
      "hover #spin": "animatePlayButton"
    
    doPlay: ()-> this.r.spin

    animatePlayButton: ()->
        this.playButton.transform

      slideInfo.set code

      remoteQueu = new Firebase "#{baseFirebaseUrl}qc/"
      console.log remoteQueu
      
      this.showConnectionBoard() 
      remoteQueu.limit(200).on 'child_added', (snapshot) ->
        console.log(snapshot)
        message = snapshot.val()
        console.log(message)
        switch message.cmd
          when 'handshake'
            #if localStorage['allow']? and message.from == localStorage['allow']
              #return true

            if confirm("Allow connection from #{message.name}?")
              connection.set('connected_from', message.from)
              localStorage['allow'] = message.from
          when 'next'
            remote.next()
          when 'prev', 'previous'
            remote.previous()
          when 'current'
            remote.getCurrentSlide()
          else
            console.log "Not implement"
        #Okay, remove that command
        r = new Firebase("https://qcommander.firebaseio-demo.com//#{connection.get('token')}/qc/".concat(snapshot.name()))
        r.remove()

    showConnectionBoard: () ->
      return this.render()
