JavaScript Loops uploaded