Perlito5 - js - fix scope in "if" statement