calc panel JS example