prepare for dashboard, html cleanup

- 2 or more Charts can now be used on the same page
- JS has been moved from HTML to JS