add truncate functions for index.html
Merge branch 'master' of github.com:nigelzeng/nigelzeng.github.com