   #--------------
   # Routers
   #--------------
-  # app.Router = Backbone.Router.extend(
-  #   routes: '*filter': 'setFilter'
-  #   setFilter: (params) ->
-  #     console.log 'app.router.params = ' + params
-  #     # window.filter = params.trim() or ''
-  #     app.todoList.trigger 'reset'
-  #     return
-  # )
+  app.Router = Backbone.Router.extend(
+    routes: '*filter': 'setFilter'
+    setFilter: (params) ->
+      console.log 'app.router.params = ' + params
+      window.filter =  if params? then params.trim() else ''
+      app.todoList.trigger 'reset'
+  )
   #--------------
   # Initializers
   #--------------   
-  #app.router = new (app.Router)
-  #Backbone.history.start()
+  app.router = new (app.Router)
+  Backbone.history.start()
   app.appView = new (app.AppView)
 
 $(document).ready(ready)

  #--------------
  # Views
  #--------------
  # renders individual todo items list (li)
  app.TodoView = Backbone.View.extend(
    tagName: 'li'
    # template: _.template($('#item-template').html())
    template: _.template('<div class="view">
        <input class="toggle" type="checkbox" <%= completed ? "checked" : "" %>>
        <label><%- title %></label>

      @$el.html @template(@model.toJSON())
      @input = @$('.edit')
      this
    initialize: ->
      @model.on 'change', @render, this
      @model.on 'destroy', @remove, this
    events:
      'dblclick label': 'edit'
      'keypress .edit': 'updateOnEnter'
