var terminalStates = []; function init() { var i; for (i=0 ; i<8 ; i++) { } } document.addEventListener("load", init, false);