refactor MainCharts.html and EI_MonthlyAPL.html