       # This code matches that list back to the task
 
       if type in ["create", "update"] and
-      className is "Task" and model.list.slice(0,2) is "c-"
+      className is 'Task' and model.list.slice(0,2) is "c-"
 
         # The list hasn't been assigned a server ID yet
         if client[model.list] is undefined

  io.configure ->

    # Hide irrelevant messages
    io.set "log level", 1

    # Prevent unauthorised access to server
    io.set "authorization", (handshakeData, fn) ->
      uid = handshakeData.query.uid
      token = handshakeData.query.token
      if DebugMode
        console.log "Received uid and token", uid
      if uid? and token?
        User.checkLoginToken(uid, token).then (exists) ->
          handshakeData.uid = uid


  # Delete existing model
  destroy: ([className, id], timestamp=Date.now()) =>
    return unless className in SUPPORTED_CLASSES
    model = @findModel className, id

    # Check that the model hasn't been updated after this event
