Removing sufia JS
Remove unmodified generated JS
Cut out unused jQuery UI components
Make sure to use boostrap "improved modal"

https://github.com/jschr/bootstrap-modal