Writing chart legends.
Added jquery waypoints