Performance optimizations
Optimize: avoid retrieving text of entire div for generating title