Editing period durations using fraction.js.