scope issue here because ```this``` gets redefined now we're in the alertify scope.
I usually just add ```var that = this;``` at the top of the previous scope ie. deletepost() and then us that.model.destroy()