Unify your API and abstract time using Functional Reactive Programming and Bacon.js