JavaScript plugin for dynamic template decorating from declarative attributes