Update JS generator

Usage:
```
./nez transpile -t sjs -p ... -i ...
```