Update record ajax call to use PUT