Perlito5 - js - implement some variants of array slices