Update JS Loops