Adds percolator update
Refactors AJAX send funcitons