javascript and editor role changes