A simple for working with serial callbacks, works on node and browser