Fix missing JavaScript file when you rename the Umbraco admin directory
The Error
For those of you who have tried to rename your Umbraco installation directory to something other than the default /umbraco/ you'll have found that TreeInit.aspx throws a JavaScript error along the lines of:
Message: Object expected Line: 1 Char: 4236 Code: 0 URI: http://www.