Fix node html compression and refactor registry