Update main.js

Added function to render html to display homepage