update js to reflect what is expected for db
correct edit getter