Migrated editor javascript from application.js to timelineEditor.js