* fix nodejs-server path issue in windows platform * only replace character in apiPackage
* read directly from templates * refactor nodejs structure * dont inject into global scope * move to 2 spaces consistently