replace js chart engine by a new one