PLZ TELL ME WHY IT HAPPEN
This tutorial required DayPilot Pro (the commercial version). It looks like you are using DayPilot Lite (the open-source version) which doesn't support all the features (e.g. SetScrollX() method).