Just use the unedited EB script you copied before you made changes (rule no.1 of modding).

You'll need to change the EDB, not the EDU, to make units trainable elsewhere.