Style fixes for HTML source view

Fixes #154 

/cc @diegoreymendez 
I'd consider splitting the title creation into a different method to separate responsibilities. Calling it inside this one should be OK though.