edits in js