javascript panel and components