update main.js to properly set document title

The pageTitle was never being updated even though `pageTitle` is set in all views.

updated the args to `_.result` to pick up the pageTitle attribute from the view.
Merge pull request #19 from Flet/main-js-pageTitle-fix

update main.js to properly set document title