Adding video sequence feature.

    - JS code has been heavily refactored and bugfixed.
    - Interval sequence feature has been rewritten as well.

Huge commit, much changes, please test it before any merging. :+1: