$a_slice macro shouldn't also define the result array, let JS be JS.
This should improve clarity.