Make sure subprocess calls don't ignore result codes indicating errors. Fix JS docs generation while at it.
Fixed wrong named argument format