Fix for a small bug in show/hide JS for Google Charts