document.title = "myTitle";
$document.title = "myTitle"; // this doesn't work
But it does not work. Finally I found the correct way to set HTML document:
For those who has the same problem as me.