Added json response

sending back a JSON response when posting updates via AJAX