Perlito5 - js - slice assignment refactor