edit timeline js