 
   set_attributes: (attrs) ->
     $.each attrs, (attr, val) =>
+      if attr == "id" && !isNaN(parseFloat(val)) && isFinite(val)
+        @id = val
       @set(attr, val)
 
   append_to_page: ->

        @id = model_data.data("id")
    @




    ).responseText

    obj = JSON.parse(response)
    @set_attributes(obj)

    @handle_errors(obj)

    unless @error?
      @update_data_vals()

  destroy: ->
    @route ||= @model.replace("-", "_") + "s"
