added loops.js