don't use "for( in )" to loop over arrays, sadly that's not safe in js. prefer for(;;)