Some basic JS edits