Restructured javascript files for models. Moved delete confirmation to global so it can be re-used.