rendering index.html and created index.js to render dynamic data on the template