properly finalize ti-console.js file