Support custom JS constructors for panel and section subclasses