cxx2js: fixed vars