Added jQuery / JS functions to dynamically manipulate the graphs