create the capacity curve app
fragility_viewer.js - some clean up