Changes for Js To draw chart