extract sweet.js a_slice macro as its own module