update main.js to properly set document title

changed args to `_.result` to properly pick up pageTitle from view.

```
document.title = _.result(newView, 'pageTitle') || "{{{title}}}";
```