Moved chart drop line and custom popup code to separate script chart_sugar.js
This removes duplicated code and enables re-usability.
Removed unused variables
Removed unused functions and cleaned the code
Writing total_spend as long (instead of exponential notation).
Reverting "Writing total_spend as long (instead of exponential notation).