I changed to code view and got the java script error again on another line. It seems inconsistent, where the errors are made. For now I have the pages working by going through my many backup folders from all the testing, and picking the pages that worked. Got quite a headache.
Only on the update page, the menus are supposed to be sorted by language, and they are, but they pick a random language to display first. This is a problem, because one of the languages is polish, and I have no clue, what the selection is.