More JS edits