This text area for the script code is far too small.  You should have a look at the editor we used in the patientsummary module for the script.  Would be great to incorporate that.  At the very least, the editor should be much bigger