HTML5 Dynamic Animated Line Graph