better api for transforming via js
make it explicit that it's js