Moved JS from loop-2.js to base.js