Create loops.js