Range chart is converted into a jQuery plugin