don't create js test directories unless they are being used

just moves a setup block from `__init__` to `launch`