Fixes to js chart click