-refactored timeline.js, cleared whitespaces and stuff