For loops suck in js