Base for javascript Panel, ContainerPanel and CardPanel