Titles changes, and javascript improvement for text length