Further to my previous post, I have uploaded the code
as a JSFiddle.
1. Default view of list of users
A full list of all users in the "Users" table is retrieved and displayed. "Edit" and "Delete" buttons appear alongside each entry.
2. Edit an existing user entry
The default text that appears when you edit an existing entry depends on your implementation of copyBackingFields(). In this case, both fields are populated with the record's existing data.
3. Add a new user
On clicking "New user", a new record is created and populated with data as defined in your initBackingFields() implementation. In most cases, the desired behaviour will be simply to start with an empty record.