general code cleanup

Feature - Made chart controller more modular.
Feature - Modified dash.html to match the controller changes.
Fix - Deleted repeated parameter in checkAuth function in app.js