Altered loops.js format