A complete rewrite of my simple JavaScript engine to C++