           @commands.push command
 
     init: ->
-      return @on "loaded", @init.bind(this, arguments) unless @fs
-      @fs.root.getFile "commands.json", { create: true }, ((fileEntry) =>
-        @fileEntry = fileEntry
-        fileEntry.file @readFile.bind(this), @onLoadError.bind(this)
-      ), console.log.bind(console, "Error loading file")
+      _.defer @trigger.bind(this, "initialised")
+      # return @on "loaded", @init.bind(this, arguments) unless @fs
+      # @fs.root.getFile "commands.json", { create: true }, ((fileEntry) =>
+      #   @fileEntry = fileEntry
+      #   fileEntry.file @readFile.bind(this), @onLoadError.bind(this)
+      # ), console.log.bind(console, "Error loading file")
 
     sync: ->
       params = {}


    constructor: ->
      _.extend this, Backbone.Events
      @requestFileSystem(
        window.PERSISTENT
        10 * 1024 * 1024
        @onLoad.bind this
        @onLoadError.bind this
      )

      @on "initialised", @sync.bind this


      @lastSync = json.lastSync

    storeCommands: ->
      return
      @fileEntry.createWriter ((fileWriter) =>
        json = JSON.stringify {
          commands: @commands
