rename js constructor [chart]