Corrected double ajaxing issue with the data-replace task

* Plugin was firing ajax request twice.
* Modified to follow same pattern as other ajax based requests
* Corrected the double fire to only happen once now.