JS and view to calculate execution plans implemented