Create specs and accompanying fixtures for dashboard and load javascript using jasmine
Refactor dashboard.js