Adds commentary in Javascript Files. Adds active css effect in ui when switching the chart type.