Vuln fix misc 3

This Pr include a number of miscellaneous bug fixes based on the GEM Vulnerability Database & GUI Google document.  
No check in this sequence of assignations, maybe a:
```
var maxy = chartDataFiltered.pop();
maxy = maxy[1];
```
could be enough.