Moved chart code outside of app.js and refactored Angular chart stuff.
Fixes bug where chart renders too many times.
Chart now resizes with page.