Allow set title to function return value

Now it is possible to set document.title value to function return value
Merge pull request #1 from romanenko/patch-1

Allow set title to function return value