Moved chart drop line and custom popup code to separate script chart_sugar.js
This removes duplicated code and enables re-usability.