Perlito5 - js - emitter cleanup