remove code duplication with abstract Yotsuba class for extendable HTML/JSON class