Error in Javascript

Correction of an error in the JavaScript. City name wasn’t saved.