Updated edit element in JS file.