Fixes title tag when using ajax.