JS: Added example of main.cc