Allow set title to function return value

Now it is possible to set document.title value to function return value
Basics tests with mocha.js; new mocha grunt task; minified version updated
Merge branch 'patch-1' into tests