added optionsToJSON() on master chart