pre json edits and general JS edits