Added AI.js and made lua.js externally usable