Converted to use JSON callbacks, moved all editing of customer to edit.js