Fixed Model path for tempating/main.js. Added ability to override output path