migrated timeline's code from Authoring prototype to one module