Add readOnly option to demo
Fix exception when no tasks and use gantt factory new method names