Code in example fixed

Chart creation code must be in jQuery section