I forgot his name, but tsengu or something developed this pretty neat script called "persist.js" which helped alot with programming variables and stuff.
There's also the restored persist.js wiki article The only difference between that and Lord English's version is an Abort call when logging errors.