Your comments

This is exactly what I did (sorry my description wasn't very clear above) - so the Done button can be pressed and it does return to the editor but the editor is unresponsive until (it would appear) that the script has finished running - at least that is my theory ;-) Thanks for your suggestion though.
That would be great when editing JavaScript too if you could have minus symbols next to the line number when braces are found so that you could click the minus to fold the code between matching braces and then if needed click a plus button to re show the code. Doing it based on the current language's idea of a code unit/group (such as braces in C or JavaScript) would allow you to fold loops, if statements, switch statements or even complete functions which would be great.
I agree, I write a lot of JavaScript code and it would be nice if I could change the software keyboard to make it fit in with the way I write JavaScript. So being able to assign my own keys to any of the five positions on the software keys would be great.

Even better if I cold have different software keyboard layouts associated with different language types or the ability to have named key sets that I can swap between.

Great app!