Removed unnecessary semicolons
Add global scope to icora.js
Declare `i` variable early on for reuse