added option to JavaScript compiler to generate Node.js or browser code + split html and js into two files