added template to postview initialize, otherwise it returns an error -rails pipeline loads main.js before index, resulting in undefined