fix ups to edit.js