Bring back most of the JavaScript on the overview page

The ony bit still commented out is deleting containers and modals