JS changes to make an AJAX call to make DB changes