ctx.js: Add file header comment
ctx.js: Nest the private functions
aikos.js: Refactor for cleanliness