edits for js