         _m_collection = new LogEntries
         for json in log_entries
             entry = new LogEntry json
+            entry.set('machine_uuid',machine_uuid)
             _m_collection.add entry
             all_log_entries.push entry
 


class LogEntries extends Backbone.Collection
    model: LogEntry
    comparator: (log_entry) ->
        # sort strings in reverse order (return a negated string)
        #String.fromCharCode.apply String,
        #    _.map(log_entry.get('datetime').split(''), (c) -> 0xffff - c.charCodeAt())

        $.getJSON('/ajax/progress', set_progress)
        $.getJSON('/ajax/directory', set_directory)
        $.getJSON('/ajax/last_seen', set_last_seen)
        $.getJSON('/ajax/log/_?max_length=10', set_log_entries)

    # Override the default Backbone.sync behavior to allow reading diffs
    legacy_sync = Backbone.sync
