Exported chart functions into their own respective .js files