Moved the javascript to names.js file, added templates for each view, and separated each call and objects to be loaded on the occurrence controller