included commonConfig.js and modifications to template.js and index.html to use it