added js file. form saves data to local storage, displays data. Error when editing data