attempt to implement base class structure for js svg timeline drawing framework