Modified TimelineJS to fix reloading