Add mergeData.js to generate merged json file and modified main.js to render template with data using ejs.