OK. Now I start to get the point.
So the main goal is to make Stan run in the browser:
```
Build a Stan program:
Given a Stan program at foo/bar.stan, build an executable by typing:
> make foo/bar$(EXE)'
This target will:
1. Build the Stan compiler and the print utility if not built.
2. Use the Stan compiler to generate C++ code, foo/bar.hpp.
3. Compile the C++ code using $(CC) $(CC_MAJOR).$(CC_MINOR) to generate foo/bar$(EXE)'
```
first I was trying to do this using `em++`, and also got "halfway", I am quite beginner there... but now I just got hint on how to do the 2nd half :).
Namely, compile the C++ code to something that can run in the browser, because, to the best of my understanding I managed to get a `.js` and `.wasm` file for `stanc` but it does not really run in `node stan.js` and also not in the browsers.

But then I got this in the browser :

Anyway, baby steps, first I try to reproduce your examples, and some other ppl's examples, etc...
baby steps, but you gave me hope ! This is very cool news ! And thanks for the help in simplifying the em++ inside the browser compiler ...
into something that can be used to compile a `C++` file into `.js` / `.wasm` file.
Anyway, I want to get Stan running on node.js, or in the browser, and only after that I can try to compile it in the browser ... :)
baby steps,
thanks for this great news ! I am impressed. Looks cool !
Have a good Guys !
Cheers
Jozsef