creates a deep copy of provided object
var backupTask = gantt.copy(gantt.getTask(id));
added in version 4.0