Perlito5 - js - fix scope for "for" variable