Don't do 2 AJAX requests for HTML pages. Fixes #32