Case-insensitive comparison of templates and URLs

I forgot to make comparisons case insensitive when comparing the
template to a give URL. I also decided to make older browser
compatibility someone else's responsibility.