Update main.js

Treat .erb as html