Fix Firefox compatibilty and don't render pages on AJAX.