fix HTML wrapper building for FF