Refactored code and updated variable and function names for the new method of setting the chart.
Refactored the app object using literal notation and added a function to populate the chart instead of using the template script.
Removed unnecessary styles.