The last couple of days I began refactoring the code i've been working on for integrating wiki into the scripting environment of Livecode. The lessons I learn there I hope to apply to pure Javascript environments, but also in a way in which they can wor with other [programming languages. See Polyglot Strategy.