Sending correct values in ajax post on camera config