Ajax is acting up on certain page titles so work around it

This needs more work, I don't know what is wrong yet but it seems to be
an JSON related issue.

Signed-off-by: Patrik Jakobsson <patrik.r.jakobsson@gmail.com>