contrib/jwrapper: remove double spaces in generated code