core: always flatten javascripts to binaries before transport.