For reusable javascript code. Sometime data in TextArea1 would affect the appearance of TextArea2 , thus the need to access TextArea2 script
Also sometime order of execution of the script is important. TextArea1 script should be executed before TextArea2 script (in the next tab for example). Be able to call function from one to another text area would help to accomplish