modular library for both html and svg