is it possible to move the anon function on lines 33 to 50 to a js file?  so that this is something like:

```javascript
$(document).ready(moreCharts(chart_url, page));
```