Refactoring of the scrubbables timeline js