Added ref to main.js and added block content to template