Many small additions to cxx2js