Rename charts.js to application.js

Prior to this commit, all the JavaScript functions were were in a file
called "charts.js". However, there was functionality in the file not
related to generating charts, so the file has been renamed "application"
to better reflect what functionality is contained within it.