DAT.GUI is a lightweight controller library for JavaScript for controlling variables and functions on the fly. The library uses DAT.GUI panels to contain UI controls and allow you to manipulates with variables to control the GUI elements.
Since manipulation is real-time, you can use this lightweight library to simulate objects and flow charts or just display data visualizations and dynamic data.
Parameters can be set easily to view changes and get desired results.