added main js file and rendered name to view from model
Added template functionality, but needs refactoring