Improve checktitle.js