Revert changes in figure-1.0.0.js and move them to views/modal_views.js