[HTML] Use proper reference counting instead of a dummy one.