Later I realized that the problem was that many times I would be modifying the "wrong" script because an Espo "detail" view is made of nested views that control different parts of the screen and even the display of each individual field.
Here's a diagram that lists the different scripts or classes that control each section of an entity's detail display. Hopefully this will help other developers find their way around Espo too.
For more information about script mapping check this post: https://forum.espocrm.com/forum/deve...ange-something