       )
       return
 
-    initFormIndex: (index) ->
+    _initFormIndex: (index) ->
       @_replaceFormIndex("__prefix__", index)
       return
 
-    updateFormIndex: (index) ->
+    _updateFormIndex: (index) ->
       @_replaceFormIndex('\\d+', index)
       return
 

      newFormElem = @template.clone().removeClass("empty-form")

      newForm = new $.fn.djangoFormset.Form(newFormElem, this)
      newForm.initFormIndex(@totalForms.val())
      @totalForms.val(parseInt(@totalForms.val()) + 1)

      newFormElem.insertAfter(@insertAnchor)

      @totalForms.val(parseInt(@totalForms.val()) - 1)
      @forms.splice(index, 1)
      for form, i in @forms
        form._updateFormIndex(i)

      if @forms.length == 0
        @insertAnchor = @template
