added js function to redraw chart on window resize.
Added lava.register() to jscore to register charts with window resizing