Javascript For Loop With Array Length Vba Emulator