     
     #clear textbox and update suggestion filter
     Session.get('tag_input_box')?.value = ''
-    Session.set("filter_text", '')
+    Session.set('filter_text', '')
     if tag_text != "" && not (tag_text in my_tags)
       my_tags.push(tag_text)
       Posts.update(id, {$set: {'my_tags': my_tags}})

    
    "click button[name='start_tagging']": (event) ->
      if not event.isImmediatePropagationStopped()
        Session.set("current_post", @_id)
        Session.set("filter_text", '')
        Session.set('tag_input_box', undefined)
        Session.set("suggested_tags", @suggestions)
        event.stopImmediatePropagation()
        
    "click button[name='enter_tag']": (event) ->
      if not event.isImmediatePropagationStopped()
        Template.tagbox.add_tag(@_id, @my_tags,
          Session.get('tag_input_box').value)
      return false
        
    "click button[name='done_tagging']": (event) ->
      if not event.isImmediatePropagationStopped()
        Session.set("current_post", undefined)
      return false
  }
  

              Template.tagbox.add_tag(@_id, @my_tags, suggested_tag)
          when 39 #Right-arrow: REMOVE SUGGESTED TAG
            if event.ctrlKey
              Session.get('suggested_tags').remove(suggested_tag)
          else    #Update filter with new text
            Session.set('filter_text', entered_text)
          
        event.stopImmediatePropagation()
    
