hybrid bash-like/js runner