Perlito5 - js - fix scope in while()